package com.ternnetwork.commons.utils;

import javax.servlet.http.HttpServletRequest;

public class HttpRequestUtils {
	
	
    public static boolean isAjaxRequest(HttpServletRequest request){  
        String header = request.getHeader("X-Requested-With");  
        boolean isAjax = "XMLHttpRequest".equals(header) ? true:false;  
        return isAjax;  
    }  

}
